<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>华中师范大学附属孝感幼儿园网上招生系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/Public/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/AdminLTE.min.css">
  <!-- bootstrap datepicker -->
  <link rel="stylesheet" href="/Public/adminlte/plugins/datepicker/datepicker3.css">

  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect.
  -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/skins/skin-blue.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">ZS</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">孝感幼儿园招生系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Sidebar toggle button-->
		 
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs"><?php echo (cookie('name')); ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">

                <p>
                  <?php echo (cookie('name')); ?>——<?php echo (cookie('userid')); ?>
                  <small>上次登录时间：<?php echo (cookie('logindate')); ?></small>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="/index.php/Home/Index/profile" class="btn btn-default btn-flat">个人信息</a>
                </div>
                <div class="pull-right">
                  <a href="/index.php/Home/login/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?php echo (cookie('name')); ?></p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="/index.php/Home/Index/viewstu" method="post" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="sname" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" id="side-menu">
        <li class="header">菜单栏</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="<?php echo 2==1?'active':'1';;?>"><a href="/index.php/Home/Index/"><i class="fa fa-dashboard"></i> <span>主页</span></a></li>

      

        <li class="treeview <?php echo 2==2?'active':'';?>">
          <a href=""><i class="fa fa-user"></i> <span>学生管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addstu"><i class="fa fa-circle-o"></i> 添加学生</a></li>
            <li><a href="/index.php/Home/Index/stulist"><i class="fa fa-circle-o"></i> 学生列表</a></li>
			<li><a href="/index.php/Home/Index/searchstu"><i class="fa fa-circle-o"></i> 查找学生</a></li>
          </ul>
		</li>

		
<?php if($_SESSION['sfid']== 1): ?><li class="treeview <?php echo 2==3?'active':'1';?>">
          <a href=""><i class="fa fa-user-secret"></i> <span>老师管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addth"><i class="fa fa-circle-o"></i> 添加老师</a></li>
            <li><a href="/index.php/Home/Index/thlist"><i class="fa fa-circle-o"></i> 老师列表</a></li>
          </ul>
        </li><?php endif; ?>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" id="mcont">

    <!-- Main content -->
    <section class="content">

      <!-- Your Page Content Here -->
	<div class="col-md-6">
          <!-- Horizontal Form -->
          <div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title">修改学生</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal" method="post" action="/index.php/Home/Index/updatestu">
              <div class="box-body">
				<input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" />
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 control-label">姓名</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="inputname" value="<?php echo ($data["name"]); ?>">
                  </div>
                </div>
                
				<div class="form-group">
                  <label class="col-sm-2 control-label">性别</label>
                  <div class="col-sm-10">
						<input type="radio" name="sex" id="radiosex1" class="minimal" value='男' <?php if($data["sex"] == '男'): ?>checked<?php endif; ?> />
					<label for="radiosex1">&nbsp;男</label>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="sex" id="radiosex2" class="minimal-red" value='女' <?php if($data["sex"] == '女'): ?>checked<?php endif; ?> />
					<label for="radiosex2">&nbsp;女</label>
                  </div>
                </div>

				<div class="form-group">
                  <label for="datepicker" class="col-sm-2 control-label">出生日期</label>
                  <div class="col-sm-10">
                    <div class="input-group date">
					  <div class="input-group-addon">
						<i class="fa fa-calendar"></i>
					  </div>
					  <input type="text" name="birthday" class="form-control pull-right" id="datepicker" value="<?php echo ($data["birthday"]); ?>">
					</div>
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputzkid" class="col-sm-2 control-label">预报班级</label>
                  <div class="col-sm-10">
						<select class="form-control" name="class">
						  <option value="小班" <?php if($data["class"] == '小班'): ?>selected="selected"<?php endif; ?>>小班</option>
						  <option value="中班" <?php if($data["class"] == '中班'): ?>selected="selected"<?php endif; ?>>中班</option>
						  <option value="大班" <?php if($data["class"] == '大班'): ?>selected="selected"<?php endif; ?>>大班</option>
					</select>
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputpname" class="col-sm-2 control-label">父母姓名</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="parentname" id="inputpname" value="<?php echo ($data["parentname"]); ?>">
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputtel" class="col-sm-2 control-label">手机号</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="telephone" id="inputtel" value="<?php echo ($data["telephone"]); ?>">
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputwork" class="col-sm-2 control-label">工作单位</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="workplace" id="inputwork" value="<?php echo ($data["workplace"]); ?>">
                  </div>
                </div>

				<div class="form-group">
                  <label for="inputadd" class="col-sm-2 control-label">家庭地址</label>
				  <div class="col-sm-10">
                    <input type="text" class="form-control" name="address" id="inputadd" value="<?php echo ($data["address"]); ?>">
                  </div>
                </div>

              </div>
              <!-- /.box-body -->
              <div class="box-footer">

                <button type="button" class="btn btn-default" onclick="window.history.go(-1);">不理返回</button>
                <button type="submit" class="btn btn-info pull-right">确定修改</button>

              </div>
              <!-- /.box-footer -->
            </form>
          </div>
          <!-- /.box -->
 
        </div>




    </section>
    <!-- /.content -->

    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.3 -->
<script src="/Public/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/Public/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/Public/adminlte/dist/js/app.js"></script>
<!-- bootstrap datepicker -->
<script src="/Public/adminlte/plugins/datepicker/bootstrap-datepicker.js"></script>

<script type="text/javascript">
<!--

	$(function(){
		//Date picker
		$('#datepicker').datepicker({
			format: 'yyyy-mm-dd',
			autoclose: true
		});
	});
//-->
</script>
</body>
</html>